<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>手风琴菜单示例</title>
    <link rel="stylesheet" href="styles.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
    <div class="header">
        <div class="header-image" id="headerImage">
            <img src="2.jpeg" alt="示例图片" style="width: 100%; height: 400px;">
            <button id="closeButton" onclick="hideImage()">×</button>
        </div>
        <nav class="navbar">
            <ul>
                <li><a href="#home">首页</a></li>
                <li><a href="#about">关于我们</a></li>
                <li><a href="#services">服务</a></li>
                <li><a href="#contact">联系我们</a></li>
            </ul>
        </nav>
    </div>
    <div class="accordion">
        <div class="accordion-item">
            <button class="accordion-header" onclick="toggleAccordion(this)">
                <i class="fas fa-home"></i> 首页
            </button>
            <div class="accordion-content">
                <p>这是首页的内容。</p>
            </div>
        </div>
        <div class="accordion-item">
            <button class="accordion-header" onclick="toggleAccordion(this)">
                <i class="fas fa-info-circle"></i> 关于我们
            </button>
            <div class="accordion-content">
                <p>这是关于我们的内容。</p>
            </div>
        </div>
        <div class="accordion-item">
            <button class="accordion-header" onclick="toggleAccordion(this)">
                <i class="fas fa-cogs"></i> 服务
            </button>
            <div class="accordion-content">
                <p>这是服务的内容。</p>
            </div>
        </div>
        <div class="accordion-item">
            <button class="accordion-header" onclick="toggleAccordion(this)">
                <i class="fas fa-envelope"></i> 联系我们
            </button>
            <div class="accordion-content">
                <p>这是联系我们的内容。</p>
            </div>
        </div>
    </div>
    <div class="content">
        <h1>欢迎来到示例页面</h1>
        <p>滚动页面以查看回到顶部按钮...</p>
        <img src="https://via.placeholder.com/600x400" alt="示例图片1" style="width:100%; margin-bottom: 20px;">
        <p>这是第一张示例图片。</p>
        <img src="https://via.placeholder.com/600x400" alt="示例图片2" style="width:100%; margin-bottom: 20px;">
        <p>这是第二张示例图片。</p>
        <img src="https://via.placeholder.com/600x400" alt="示例图片3" style="width:100%; margin-bottom: 20px;">
        <p>这是第三张示例图片。</p>
        <p style="margin-top: 500px;">页面底部</p>
    </div>
    <button id="backToTopBtn" title="回到顶部">↑</button>
    <script src="script.js"></script>
</body>
</html>